home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c++,comp.lang.java
- Path: netcom.com!milod
- From: milod@netcom.com (John DiCamillo)
- Subject: Re: Java: What's the Big Deal?
- Message-ID: <milodDoL1uy.581@netcom.com>
- Organization: NETCOM On-line Communication Services (408 261-4700 guest)
- References: <milodDoF9JF.K32@netcom.com> <1996Mar20.154600.12011@amc.com>
- Date: Wed, 20 Mar 1996 20:20:58 GMT
- Sender: milod@netcom16.netcom.com
-
- curtis@amc.com (Curtis Green) writes:
- >John DiCamillo (milod@netcom.com) wrote:
- >: pete@borland.com (Pete Becker) writes:
-
- >: >There's no reason you can't write a C++ compiler that generates a Java
- >: >bytestream.
-
- >: Are you claiming that arbitrary, correct (ANSI) C++ code can
- >: be compiled to the JVM and continue to work correctly? Or are
- >: you claiming that a compiler can be written that will translate
- >: some limited subset of C++ into JVM?
-
- >you would just need a proper backend to do the translation into a JAVA virtual
- >machine compatible bytestream
-
- You seem convinced that it is possible to create such a "proper
- backend". Given the semantic differences between C++ pointers
- and arrays and Java references and arrays, I remain skeptical.
-
- Obviously, by Turing equivalence, I can prove that it is possible
- to create an ANSI C++ compiler that produces output that will
- work correctly on a Java interpreter. For example, this can be
- done by having the C++ compiler emit code for an arbitrary real
- CPU, and then implementing an emulator for that CPU on top of
- the JVM. QED.
-
- However, this does not guarantee that a usable, efficient, and
- complete implementation of C++ can be generated by a compiler
- that emits JVM byte code. It may still be possible, but I am
- not prepared to assume so.
-
-
- >: In any case, no one can answer [Pete's] question until you define
- >: what you mean by "expressive power".
-
- >overloaded operators, pointers, function pointers, templates ...
-
- *That's* your definition of "expressive power"???
-
- --
- ciao,
- milo
- ================================================================
- John DiCamillo Fiery the Angels Fell
- milod@netcom.com Deep thunder rode around their shores
-